package com.lan.service.sys;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lan.businessObject.MapBo;
import com.lan.entity.sys.Role;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author shadow
 * @since 2022-06-04
 */
public interface RoleService extends IService<Role> {

    /**
     * 当前存在的 角色名 & 角色码
     *
     * */
    List<MapBo> getRoleList();

    /**
     * roleList by userId
     *
     * */
    List<Role> getRoleListByUserId(String userId);

    List<Role> getListByWrapper(Role role);

    Role getRoleByCode(String code);

    int setUserRole(final String userId, final List<String> roleList);

    void config(final String roleId, final String menuArr);
}
